import Layout from '@/layout/index';
import userStore from '@/store/modules/user';
var routes = function () {
    const module = 'lucy-notice';
    if (userStore().isAdmin) {
        return [
            {
                path: '/',
                component: Layout,
                name: '',
                children: [
                    {
                        path: 'notice',
                        component: () => import('@/module/notice/pages/notice/index.vue'),
                        name: 'Notice',
                        meta: { title: '公告管理', icon: 'user', noCache: false }
                    }
                ]
            },
        ]
    } else{
        return [];
    }


}
export default routes